package com.shopping.dao.impl;


import com.shopping.dao.FlowerDao;
import com.shopping.model.Flower;
import com.shopping.model.Flower;
import com.shopping.utils.DBUtil;

import java.util.List;

/**
 * 该类实现 MilkDao接口
 */
public class FlowerDaoImpl extends DBUtil implements FlowerDao {

    @Override
    public List<Flower> queryFlower() {
        String sql = "select * from tbl_flower";
        return super.executeQueryList(sql,Flower.class);
    }

    @Override
    public Flower queryFlowerDesc(int FlowerId) {
        String sql = "select * from tbl_flower where flower_id=?";
        return  super.executeQueryOne(sql,Flower.class,FlowerId);
    }
}
